/**
 * 
 */
package id.web.faisalabdillah.xtimesheet.services;

import id.web.faisalabdillah.xtimesheet.domain.Role;

import java.util.List;

import com.google.appengine.api.datastore.Key;

/**
 * @author faitz
 *
 */
public interface IRoleService {


	public boolean insert(Role role);

	public boolean update(Role role);

	public boolean remove(Role role);
	
	public Role findById(Key key);
	
	public Role getByCode(String code);

	public int sizeAll();

	public List<Role> listAll();

	public List<Role> listAllPaged(int first, int max);

	public List<Role> searchByCode(String code);
	
	public int searchByCodeSize(String code);
	
	public List<Role> searchByNamePaged(String name,int first,int max);
}
